import request from '@/utils/request'

// 版本查询
export function getEditionLists(params) {
  return request({
    url: '/solarFirmwareUpgradeVersion',
    method: 'get',
    params
  })
}
// 版本新增
export function addEdition(data) {
  return request({
    url: '/solarFirmwareUpgradeVersion',
    method: 'POST',
    data
  })
}
// 版本修改
export function xiugaiEdition(data) {
  return request({
    url: '/solarFirmwareUpgradeVersion',
    method: 'PUT',
    data
  })
}
// 升级

export function addByStation(data) {
  return request({
    url: '/upgradeState/addByStationAndVersion',
    method: 'POST',
    data
  })
}

export function upgradeState(params) {
  return request({
    url: '/upgradeState',
    method: 'GET',
    params
  })
}

//更新升级状态

export function gaUpgradeState(data) {
  return request({
    url: '/upgradeState',
    method: 'PUT',
    data
  })
}